//
//  MyInfoAvatarTableViewCell.m
//  TuanZhongTuan
//
//  Created by zinrro on 2017/3/18.
//  Copyright © 2017年 yaoqi yaoqi. All rights reserved.
//

#import "MyInfoAvatarTableViewCell.h"

@implementation MyInfoAvatarTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        self.selectionStyle = UITableViewCellSelectionStyleNone;
//        self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
        
        UILabel *avatarLabel = [[UILabel alloc]initWithFrame:CGRectMake(15, 5, 50, 45)];
        avatarLabel.text = @"头像";
        [self.contentView addSubview:avatarLabel];
        UIImageView *avatarImageView = [[UIImageView alloc]initWithFrame:CGRectMake(KScreenWidth-15 - 44 - 20, 5, 44, 44)];
        avatarImageView.layer.cornerRadius = 44/2;
        avatarImageView.layer.masksToBounds = YES;
        [self.contentView addSubview:avatarImageView];
        self.avatarImageView = avatarImageView;
    }
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    return self;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
